<!DOCTYPE html>
<html>
<head>
    <title></title>
	<#include "/header.html">
</head>
<body>
<style>
    th{
        text-align: center;
    }
</style>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div style="float: left">
                <input style="width: 120px" type="text" class="form-control" v-model="q.weixinName" @keyup.enter="query" placeholder="公众号ID">
            </div>
            <p style="float: left">&nbsp;</p>
            <div style="float: left">
                <input style="width: 120px" type="text" class="form-control" v-model="q.weixinNikeName" @keyup.enter="query" placeholder="公众号名称">
            </div>
            <p style="float: left">&nbsp;</p>
            <div style="float: left">
                <input style="width: 120px" class="form-control" list="brand" placeholder="品牌" id="brands" v-model="q.brandName" @keyup.enter="query">
                <datalist id="brand" style="line-height: 10px">

                </datalist>
                <!--<input style="width: 120px" type="text" class="form-control" v-model="q.articleTypeName" @keyup.enter="query" placeholder="品牌">-->
                <!--<div class="ui-widget">-->
                <!--<label for="tags">Tags: </label>-->
                <!--<input id="tags">-->
                <!--</div>-->
            </div>
            <a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("sys:weixininfo:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增公众号</a>
			</#if>
             <#if shiro.hasPermission("sys:weixininfo:save")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            </#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
                    <div class="form-group">
                        <div class="col-sm-2 control-label">公众号ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="weixinInfo.weixinName" placeholder="公众号ID"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">公众号名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="weixinInfo.weixinNikeName" placeholder="公众号名称"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">品牌</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" list="brandName" placeholder="品牌" id="brandNames" v-model="weixinInfo.brandName" placeholder="品牌"/>
                            <datalist id="brandName" >

                            </datalist>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">删除段落</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="weixinInfo.deleteParagraphsList" placeholder="删除段落"/>
                        </div>
                    </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">是否品牌公众号</div>
                <div class="col-sm-10">
                    <input type="checkbox"  placeholder="" id="checked"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">热度</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="weixinInfo.articleHotScore" placeholder=""/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">广告关键字</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="weixinInfo.adKeyword" placeholder=""/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">备注</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="weixinInfo.remark" placeholder=""/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="back" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/weixininfo.js?_${.now?long}"></script>
</body>
</html>